package com.sunxiansheng.user.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * Description: 自定义的事件对象
 * @Author sun
 * @Create 2024/7/24 14:29
 * @Version 1.0
 */
@Getter
public class PersonChangeEvent extends ApplicationEvent {

    /**
     * 要观察的对象
     */
    private Person person;

    /**
     * 操作类型
     */
    private String operateType;

    public PersonChangeEvent(Person person, String operateType) {
        super(person);
        this.person = person;
        this.operateType = operateType;
    }

}
